package com.wty.love.loveTalk;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.TextView;

import com.wty.love.R;

public class AboutAndLoveTalkActivity extends AppCompatActivity {
    public static int flag = 0;//0是关于，1是情话
    private TextView title;
    private TextView content;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about_and_love_talk);
        initView();
        initData();
    }

    private void initData(){
        if (flag == 0){
            title.setText("关于");
            content.setText(getString(R.string.about));
        } else {
            title.setText("情话");
            content.setText(getString(R.string.loveYou));
        }
    }

    private void initView(){
        title = findViewById(R.id.title);
        content = findViewById(R.id.content);
    }
}